package month3.day28;

public class Java extends Teacher{
    private String adept;

    public Java(String name, int age, int teach, String sex, String tool,String adept) {
        super(name, age, teach, sex, "idea");
        this.adept=adept;
    }

    public String getAdept() {
        return adept;
    }

    public void setAdept(String adept) {
        this.adept = adept;
    }

    public void selfIntroduce(){
        super.selfIntroduce();
        System.out.println("Java老师擅长"+adept);
    }
    public void giveLession(){
        super.giveLession();
    }
}
